package io.renren.modules.sys.service.impl;

import io.renren.modules.sys.entity.SongsetEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.sys.dao.SongsetNewDao;
import io.renren.modules.sys.entity.SongsetNewEntity;
import io.renren.modules.sys.service.SongsetNewService;



@Service("songsetNewService")
public class SongsetNewServiceImpl implements SongsetNewService {
	@Autowired
	private SongsetNewDao songsetNewDao;
	
	@Override
	public SongsetNewEntity queryObject(Long id){
		return songsetNewDao.queryObject(id);
	}
	
	@Override
	public List<SongsetEntity> queryList(Map<String, Object> map){
		return songsetNewDao.querySongsetList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return songsetNewDao.queryTotal(map);
	}
	
	@Override
	public void save(SongsetNewEntity songsetNew){
		songsetNewDao.save(songsetNew);
	}
	
	@Override
	public void update(SongsetNewEntity songsetNew){
		songsetNewDao.update(songsetNew);
	}
	
	@Override
	public void delete(Long id){
		songsetNewDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		songsetNewDao.deleteBatch(ids);
	}

    @Override
    public List<SongsetEntity> queryListAll(Map<String, Object> params) {
        return songsetNewDao.queryListAll(params);
    }

    @Override
    public void deleteAll() {
        songsetNewDao.deleteAll();
    }

    @Override
    public void insertBatch(List<SongsetNewEntity> sList) {
        songsetNewDao.insertBatch(sList);
    }
}
